<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生成绩管理系统 - 登录</title>
    <link rel="stylesheet" href="style.css">
    <style>
        .error-message { color: red; font-size: 0.9em; height: 1em; }
        .status-message {
            padding: 10px;
            margin: 10px 0;
            border-radius: 4px;
            transition: opacity 1s ease;
        }
        .status-success { background-color: #d4edda; color: #155724; }
        .status-error { background-color: #f8d7da; color: #721c24; }
    </style>
</head>
<body>
<div class="decoration decoration-yellow"></div>
<div class="decoration decoration-red"></div>
<div class="decoration decoration-green"></div>
<div class="container">
    <h1>学生成绩管理系统</h1>
    <form id="loginForm">
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" id="username" name="username" required placeholder="请输入用户名">
            <div class="error-message" id="usernameError"></div>
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" id="password" name="password" required placeholder="请输入密码">
            <div class="error-message" id="passwordError"></div>
        </div>
        <button type="submit" class="btn">登录</button>
    </form>
    <div id="loginStatus" class="status-message" style="display:none;"></div>
</div>
<script src="index.js"></script>
</body>
</html>